/**1.Bean的定义和注册：.class+元数据(xml/注解/JavaConfig)
 * 2.Bean的注入：Context.getBean/@Autowired(属性、setter、构造器)
 * 3.属性文件的读取：Enviroment.getProperty/@Value/@ConfigurationProperties/Properties.getProperty
 * 4.Bean生命周期: BeanDefinition-->实例化-->属性注入-->初始化------>销毁
 */
package com.example.demospringbootbean;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;


@SpringBootApplication
public class DemoSpringBootBeanApplication{
    public static void main(String[] args) {
      SpringApplication.run(DemoSpringBootBeanApplication.class, args);
          //将默认的application配置文件改为me
//        new SpringApplicationBuilder(DemoSpringBootBeanApplication.class)
//                .properties("spring.config.name:me")
//                .build()
//                .run(args);
    }
}
